package com.drugstore.drugstore.domain;


import java.util.Date;

/**
 * 对象 user
 * 
 * @author 
 * @date 2025-05-08
 */
public class User 
{

    /** $column.columnComment */
    private Long id;

    /** 用户名 */
    private String username;

    /** 登录密码 */
    private String password;

    /** 性别（0男，1女，2保密） */
    private Long gender;

    /** 联系电话 */
    private String phoneNumber;

    /** 默认收货地址 */
    private String address;

    /** 状态（0正常，1冻结） */
    private Long status;

    /** 角色（0用户，1门店，2管理员） */
    private Long role;

    private Date createTime;


    public User() {
    }

    public User(Long id, String username, String password, Long gender, String phoneNumber, String address, Long status, Long role, Date createTime) {
        this.id = id;
        this.username = username;
        this.password = password;
        this.gender = gender;
        this.phoneNumber = phoneNumber;
        this.address = address;
        this.status = status;
        this.role = role;
        this.createTime = createTime;
    }

    /**
     * 获取
     * @return id
     */
    public Long getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Long id) {
        this.id = id;
    }

    /**
     * 获取
     * @return username
     */
    public String getUsername() {
        return username;
    }

    /**
     * 设置
     * @param username
     */
    public void setUsername(String username) {
        this.username = username;
    }

    /**
     * 获取
     * @return password
     */
    public String getPassword() {
        return password;
    }

    /**
     * 设置
     * @param password
     */
    public void setPassword(String password) {
        this.password = password;
    }

    /**
     * 获取
     * @return gender
     */
    public Long getGender() {
        return gender;
    }

    /**
     * 设置
     * @param gender
     */
    public void setGender(Long gender) {
        this.gender = gender;
    }

    /**
     * 获取
     * @return phoneNumber
     */
    public String getPhoneNumber() {
        return phoneNumber;
    }

    /**
     * 设置
     * @param phoneNumber
     */
    public void setPhoneNumber(String phoneNumber) {
        this.phoneNumber = phoneNumber;
    }

    /**
     * 获取
     * @return address
     */
    public String getAddress() {
        return address;
    }

    /**
     * 设置
     * @param address
     */
    public void setAddress(String address) {
        this.address = address;
    }

    /**
     * 获取
     * @return status
     */
    public Long getStatus() {
        return status;
    }

    /**
     * 设置
     * @param status
     */
    public void setStatus(Long status) {
        this.status = status;
    }

    /**
     * 获取
     * @return role
     */
    public Long getRole() {
        return role;
    }

    /**
     * 设置
     * @param role
     */
    public void setRole(Long role) {
        this.role = role;
    }

    /**
     * 获取
     * @return createTime
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置
     * @param createTime
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }

    public String toString() {
        return "User{id = " + id + ", username = " + username + ", password = " + password + ", gender = " + gender + ", phoneNumber = " + phoneNumber + ", address = " + address + ", status = " + status + ", role = " + role + ", createTime = " + createTime + "}";
    }
}
